//
//  PickListView.swift
//  swiftUIdemo
//
//  Created by Z.cy on 2025/1/9.
//

import SwiftUI

struct PickListView: View {
    var cards:[UserCard]
    var body: some View {
        ZStack(alignment: .bottom){
            ScrollView(.vertical, showsIndicators: false){
                Text("Discover the people you like. Updated daily")
                    .multilineTextAlignment(.center)
                    .lineLimit(2)
                    .foregroundColor(.black)
                    .font(.system(size: 16, weight: .medium))
                    .padding(.vertical, 10)
                LazyVGrid(
                    columns:[GridItem(.flexible()),GridItem(.flexible())],
                    alignment: .center,
                    spacing: 10,
                    pinnedViews: []){
                        ForEach(cards) { card in
                            PickView(card: card, blur: true)
                                .frame(height: 240)
                        }
                    }
                    .padding(.horizontal, 10)
            }
            
        }
    
        
    }
}


